﻿using System;
using System.Linq;
using KeyCore.Framework.Model;

namespace KeyCore.Framework.DAL.Interfaces
{
    public interface IUsersRolesRepository
    {
        void AddRole(string roleName);
        IQueryable<UsersRoles> GetAllRoles();
        UsersRoles GetRoleByName(string roleName);
        UsersRoles GetRoleById(int roleId);
        UsersRoles GetUserRole(string userName);
        void DeleteRole(string roleName);
        void AddUserToRole(Guid userId, int roleId);
        void AddUserToRole(string userName, string roleName);
        bool RoleExist(string roleName);
    }
}
